package cn.bdqn.common.enums;

/***
 * 工具类
 * 定义全局异常错误信息
 * 定义人:组长
 */
public enum ExcptionEnum {

    PRICE_CANNOT_BE_NULL(400,"价格不能为空"),
    CATEGORY_NOT_FOND(404,"商品分类没查到"),
    ;
    private int code;
    private String msg;

    ExcptionEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    ExcptionEnum() {
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
